#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "LED.h"
#include "Switch.h"
#include "Buzzer.h"
#include "Light.h"


int main(void)
{
	Buzzer_Init();
	Light_Init();
	LED_Init();
	while(1) 
	{
		if (1 == Light_Open())
		{
			LED_Open();
			Buzzer_Open();
			Delay_ms(500);
			Buzzer_Close();
			Delay_ms(500);

		} else {
			Buzzer_Close();
			LED_Close();
		}
	}
}
